
package com.be.beadmin.product.service;

import com.be.beadmin.common.entity.PageEntity;
import com.be.beadmin.product.dto.input.WorkHoursRequestHstByStatePage;
import com.be.beadmin.product.dto.input.WorkHoursRequestHstByTaskIdPage;
import com.be.beadmin.product.dto.input.WorkHoursRequestHstDto;
import com.be.beadmin.product.dto.output.WorkHoursRequestHstEx;
import org.springframework.data.domain.Page;

import java.util.List;

/**
* @description 服务接口
* @author ljh
* @date 2023-04-18
**/
public interface WorkHoursRequestHstService {

    /**
    * 分页的查询接口
    * @param pageEntity
    * @return
    */
    Page<WorkHoursRequestHstEx> getWorkHoursRequestHstByPage(PageEntity pageEntity);

    /**
    * @param workHoursRequestHstDto
    */
    void addWorkHoursRequestHst(WorkHoursRequestHstDto workHoursRequestHstDto);

    /**
    * @param workHoursRequestHstDto
    */
    void updateWorkHoursRequestHst(WorkHoursRequestHstDto workHoursRequestHstDto);

    /**
    * @param id
    */
    void delWorkHoursRequestHst(String id);

    /**
    * 删除多个角色
    * @param ids
    */
    void delWorkHoursRequestHsts (List<String> ids);

    /**
     * 分页的查询接口,指定生产工序id
     * @param workHoursRequestHstByTaskIdPage
     * @return
     */
    Page<WorkHoursRequestHstEx> getWorkHoursRequestHstByPageAndTaskId(WorkHoursRequestHstByTaskIdPage workHoursRequestHstByTaskIdPage);

    Page<WorkHoursRequestHstEx> getWorkHoursRequestHstByPageAndState(WorkHoursRequestHstByStatePage workHoursRequestHstByStatePage);
}